cmake_minimum_required(VERSION 2.8)

project(mqtt_demo)
set(CMAKE_CXX_FLAGS "-std=c++11")

include_directories(include)

add_executable(pub_main pub_main.cpp src/mqtt_pub.cpp src/cJSON.c)
add_executable(sub_main sub_main.cpp src/mqtt_sub.cpp src/cJSON.c)

target_link_libraries(pub_main mosquitto)
target_link_libraries(sub_main mosquitto)

